package com.healthy.social.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.social.mapper.CirclesMapper;
import com.healthy.social.domain.Circles;
import com.healthy.social.service.ICirclesService;

/**
 * 用户圈子Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class CirclesServiceImpl implements ICirclesService 
{
    @Autowired
    private CirclesMapper circlesMapper;

    /**
     * 查询用户圈子
     * 
     * @param circleId 用户圈子主键
     * @return 用户圈子
     */
    @Override
    public Circles selectCirclesByCircleId(Long circleId)
    {
        return circlesMapper.selectCirclesByCircleId(circleId);
    }

    /**
     * 查询用户圈子列表
     * 
     * @param circles 用户圈子
     * @return 用户圈子
     */
    @Override
    public List<Circles> selectCirclesList(Circles circles)
    {
        return circlesMapper.selectCirclesList(circles);
    }

    /**
     * 新增用户圈子
     * 
     * @param circles 用户圈子
     * @return 结果
     */
    @Override
    public int insertCircles(Circles circles)
    {
        return circlesMapper.insertCircles(circles);
    }

    /**
     * 修改用户圈子
     * 
     * @param circles 用户圈子
     * @return 结果
     */
    @Override
    public int updateCircles(Circles circles)
    {
        return circlesMapper.updateCircles(circles);
    }

    /**
     * 批量删除用户圈子
     * 
     * @param circleIds 需要删除的用户圈子主键
     * @return 结果
     */
    @Override
    public int deleteCirclesByCircleIds(Long[] circleIds)
    {
        return circlesMapper.deleteCirclesByCircleIds(circleIds);
    }

    /**
     * 删除用户圈子信息
     * 
     * @param circleId 用户圈子主键
     * @return 结果
     */
    @Override
    public int deleteCirclesByCircleId(Long circleId)
    {
        return circlesMapper.deleteCirclesByCircleId(circleId);
    }
}
